.class public Lcom/example/m6wmr/JuanActivity;
.super Landroid/app/Activity;
.source "JuanActivity.java"


# static fields
.field public static JuanAc:Lcom/example/m6wmr/JuanActivity;


# instance fields
.field private areaid:Ljava/lang/String;

.field private areals:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/AreaBean;",
            ">;"
        }
    .end annotation
.end field

.field private btnmydo:Landroid/widget/ImageView;

.field private cursor:Landroid/database/Cursor;

.field private cxlist:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private giftliststr:Ljava/lang/String;

.field private goint:I

.field public h:Landroid/os/Handler;

.field private helper:Ldbclass/DBOpenHelper;

.field private intent:Landroid/content/Intent;

.field private intenttype:Ljava/lang/String;

.field m:Lmyapp/MyApp;

.field private mPopupWindow:Landroid/widget/PopupWindow;

.field private mPopupWindowHeight:I

.field private mPopupWindowWidth:I

.field private mScreenHeight:I

.field private mScreenWidth:I

.field private mcontext:Landroid/content/Context;

.field private myLoginView:Landroid/view/View;

.field private nowgiftid:Ljava/lang/String;

.field private nowgiftname:Ljava/lang/String;

.field private nowgiftstock:Ljava/lang/String;

.field private publayout:Landroid/widget/LinearLayout;

.field private savedInstanceState:Landroid/os/Bundle;

.field private shopid:Ljava/lang/String;

.field shoplayout:Landroid/widget/LinearLayout;

.field private shoptypels:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/ShoptypeBean;",
            ">;"
        }
    .end annotation
.end field

.field private spbd:Ldata/ShopData;

.field private waitLoginView:Landroid/view/View;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 52
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 56
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/JuanActivity;->areaid:Ljava/lang/String;

    .line 57
    iput-object v1, p0, Lcom/example/m6wmr/JuanActivity;->m:Lmyapp/MyApp;

    .line 60
    iput-object v1, p0, Lcom/example/m6wmr/JuanActivity;->h:Landroid/os/Handler;

    .line 61
    iput-object v1, p0, Lcom/example/m6wmr/JuanActivity;->shoplayout:Landroid/widget/LinearLayout;

    .line 75
    iput-object v1, p0, Lcom/example/m6wmr/JuanActivity;->cursor:Landroid/database/Cursor;

    .line 77
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/JuanActivity;->giftliststr:Ljava/lang/String;

    .line 80
    const/4 v0, 0x0

    iput v0, p0, Lcom/example/m6wmr/JuanActivity;->goint:I

    .line 81
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/JuanActivity;->nowgiftname:Ljava/lang/String;

    .line 82
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/JuanActivity;->nowgiftid:Ljava/lang/String;

    .line 83
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/JuanActivity;->nowgiftstock:Ljava/lang/String;

    .line 88
    const-string v0, "0"

    iput-object v0, p0, Lcom/example/m6wmr/JuanActivity;->intenttype:Ljava/lang/String;

    .line 90
    iput-object v1, p0, Lcom/example/m6wmr/JuanActivity;->intent:Landroid/content/Intent;

    .line 94
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/JuanActivity;->shopid:Ljava/lang/String;

    .line 52
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/JuanActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 59
    iget-object v0, p0, Lcom/example/m6wmr/JuanActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/JuanActivity;Landroid/view/View;)V
    .locals 0

    .prologue
    .line 78
    iput-object p1, p0, Lcom/example/m6wmr/JuanActivity;->myLoginView:Landroid/view/View;

    return-void
.end method

.method static synthetic access$10(Lcom/example/m6wmr/JuanActivity;)Landroid/database/Cursor;
    .locals 1

    .prologue
    .line 75
    iget-object v0, p0, Lcom/example/m6wmr/JuanActivity;->cursor:Landroid/database/Cursor;

    return-object v0
.end method

.method static synthetic access$11(Lcom/example/m6wmr/JuanActivity;Ljava/util/ArrayList;)V
    .locals 0

    .prologue
    .line 92
    iput-object p1, p0, Lcom/example/m6wmr/JuanActivity;->cxlist:Ljava/util/ArrayList;

    return-void
.end method

.method static synthetic access$12(Lcom/example/m6wmr/JuanActivity;)I
    .locals 1

    .prologue
    .line 80
    iget v0, p0, Lcom/example/m6wmr/JuanActivity;->goint:I

    return v0
.end method

.method static synthetic access$13(Lcom/example/m6wmr/JuanActivity;I)V
    .locals 0

    .prologue
    .line 80
    iput p1, p0, Lcom/example/m6wmr/JuanActivity;->goint:I

    return-void
.end method

.method static synthetic access$14(Lcom/example/m6wmr/JuanActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 77
    iput-object p1, p0, Lcom/example/m6wmr/JuanActivity;->giftliststr:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$2(Lcom/example/m6wmr/JuanActivity;)Landroid/view/View;
    .locals 1

    .prologue
    .line 78
    iget-object v0, p0, Lcom/example/m6wmr/JuanActivity;->myLoginView:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/JuanActivity;)Landroid/widget/PopupWindow;
    .locals 1

    .prologue
    .line 64
    iget-object v0, p0, Lcom/example/m6wmr/JuanActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/JuanActivity;)Landroid/widget/LinearLayout;
    .locals 1

    .prologue
    .line 79
    iget-object v0, p0, Lcom/example/m6wmr/JuanActivity;->publayout:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/JuanActivity;)Ljava/util/ArrayList;
    .locals 1

    .prologue
    .line 92
    iget-object v0, p0, Lcom/example/m6wmr/JuanActivity;->cxlist:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/JuanActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 88
    iget-object v0, p0, Lcom/example/m6wmr/JuanActivity;->intenttype:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$7(Lcom/example/m6wmr/JuanActivity;)Ldbclass/DBOpenHelper;
    .locals 1

    .prologue
    .line 73
    iget-object v0, p0, Lcom/example/m6wmr/JuanActivity;->helper:Ldbclass/DBOpenHelper;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6wmr/JuanActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 94
    iget-object v0, p0, Lcom/example/m6wmr/JuanActivity;->shopid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$9(Lcom/example/m6wmr/JuanActivity;Landroid/database/Cursor;)V
    .locals 0

    .prologue
    .line 75
    iput-object p1, p0, Lcom/example/m6wmr/JuanActivity;->cursor:Landroid/database/Cursor;

    return-void
.end method


# virtual methods
.method public Inishop()V
    .locals 0

    .prologue
    .line 559
    return-void
.end method

.method public bindbtn()V
    .locals 3

    .prologue
    .line 531
    const v2, 0x7f0c0001

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/JuanActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 532
    .local v0, "closebtn":Landroid/widget/LinearLayout;
    new-instance v2, Lcom/example/m6wmr/JuanActivity$5;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/JuanActivity$5;-><init>(Lcom/example/m6wmr/JuanActivity;)V

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 552
    const v2, 0x7f0c0016

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/JuanActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/example/location/BottomMenu;

    .line 553
    .local v1, "menu":Lcom/example/location/BottomMenu;
    const-string v2, "person"

    invoke-virtual {v1, v2}, Lcom/example/location/BottomMenu;->SetOn(Ljava/lang/String;)V

    .line 554
    return-void
.end method

.method public getShopSource()Z
    .locals 1

    .prologue
    .line 563
    new-instance v0, Lcom/example/m6wmr/JuanActivity$6;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/JuanActivity$6;-><init>(Lcom/example/m6wmr/JuanActivity;)V

    .line 610
    invoke-virtual {v0}, Lcom/example/m6wmr/JuanActivity$6;->start()V

    .line 611
    const/4 v0, 0x0

    return v0
.end method

.method public getcxSource()V
    .locals 1

    .prologue
    .line 328
    new-instance v0, Lcom/example/m6wmr/JuanActivity$4;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/JuanActivity$4;-><init>(Lcom/example/m6wmr/JuanActivity;)V

    .line 420
    invoke-virtual {v0}, Lcom/example/m6wmr/JuanActivity$4;->start()V

    .line 422
    return-void
.end method

.method public loadgiftdata()V
    .locals 22
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "ResourceAsColor"
        }
    .end annotation

    .prologue
    .line 460
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/JuanActivity;->publayout:Landroid/widget/LinearLayout;

    move-object/from16 v19, v0

    invoke-virtual/range {v19 .. v19}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 461
    new-instance v11, LPlugclass/ImageLoader;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/JuanActivity;->mcontext:Landroid/content/Context;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    invoke-direct {v11, v0}, LPlugclass/ImageLoader;-><init>(Landroid/content/Context;)V

    .line 462
    .local v11, "imageLoader":LPlugclass/ImageLoader;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/JuanActivity;->giftliststr:Ljava/lang/String;

    move-object/from16 v19, v0

    const-string v20, ""

    invoke-virtual/range {v19 .. v20}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v19

    if-eqz v19, :cond_1

    .line 463
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/JuanActivity;->mcontext:Landroid/content/Context;

    move-object/from16 v19, v0

    const v20, 0x7f03007d

    const/16 v21, 0x0

    invoke-static/range {v19 .. v21}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v18

    .line 464
    .local v18, "tempview":Landroid/view/View;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/JuanActivity;->publayout:Landroid/widget/LinearLayout;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    move-object/from16 v1, v18

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 528
    .end local v18    # "tempview":Landroid/view/View;
    :cond_0
    :goto_0
    return-void

    .line 467
    :cond_1
    :try_start_0
    new-instance v13, Lorg/json/JSONObject;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/JuanActivity;->giftliststr:Ljava/lang/String;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    invoke-direct {v13, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 468
    .local v13, "json":Lorg/json/JSONObject;
    const-string v19, "msg"

    move-object/from16 v0, v19

    invoke-virtual {v13, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v12

    .line 469
    .local v12, "jarray":Lorg/json/JSONArray;
    const/4 v7, 0x0

    .local v7, "i":I
    :goto_1
    invoke-virtual {v12}, Lorg/json/JSONArray;->length()I

    move-result v19

    move/from16 v0, v19

    if-ge v7, v0, :cond_0

    .line 471
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/JuanActivity;->mcontext:Landroid/content/Context;

    move-object/from16 v19, v0

    const v20, 0x7f030076

    const/16 v21, 0x0

    invoke-static/range {v19 .. v21}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v18

    .line 474
    .restart local v18    # "tempview":Landroid/view/View;
    const v19, 0x7f0c029a

    invoke-virtual/range {v18 .. v19}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v10

    check-cast v10, Landroid/widget/ImageView;

    .line 475
    .local v10, "im_juan_icon":Landroid/widget/ImageView;
    const v19, 0x7f0c029b

    invoke-virtual/range {v18 .. v19}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v9

    check-cast v9, Landroid/widget/ImageView;

    .line 477
    .local v9, "im_juan":Landroid/widget/ImageView;
    const v19, 0x7f0c0294

    invoke-virtual/range {v18 .. v19}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 478
    .local v3, "cost":Landroid/widget/TextView;
    invoke-virtual {v12, v7}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v19

    const-string v20, "cost"

    invoke-virtual/range {v19 .. v20}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 479
    .local v4, "costString":Ljava/lang/String;
    invoke-virtual {v12, v7}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v19

    const-string v20, "cost"

    invoke-virtual/range {v19 .. v20}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, v19

    invoke-virtual {v3, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 481
    const v19, 0x7f0c0296

    invoke-virtual/range {v18 .. v19}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    .line 482
    .local v6, "endtime":Landroid/widget/TextView;
    new-instance v19, Ljava/lang/StringBuilder;

    const-string v20, "\u6709\u6548\u65f6\u95f4\uff1a"

    invoke-direct/range {v19 .. v20}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v12, v7}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    const-string v21, "endtime"

    invoke-virtual/range {v20 .. v21}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, v19

    invoke-virtual {v6, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 484
    const v19, 0x7f0c0297

    invoke-virtual/range {v18 .. v19}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v16

    check-cast v16, Landroid/widget/TextView;

    .line 485
    .local v16, "limitcost":Landroid/widget/TextView;
    new-instance v19, Ljava/lang/StringBuilder;

    invoke-virtual {v12, v7}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    const-string v21, "limitcost"

    invoke-virtual/range {v20 .. v21}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v20 .. v20}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v20

    invoke-direct/range {v19 .. v20}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v20, "\u53ef\u7528"

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, v16

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 487
    const v19, 0x7f0c0299

    invoke-virtual/range {v18 .. v19}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v15

    check-cast v15, Landroid/widget/TextView;

    .line 488
    .local v15, "juantitle":Landroid/widget/TextView;
    invoke-virtual {v12, v7}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v19

    const-string v20, "name"

    invoke-virtual/range {v19 .. v20}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, v19

    invoke-virtual {v15, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 490
    const v19, 0x7f0c0298

    invoke-virtual/range {v18 .. v19}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v14

    check-cast v14, Landroid/widget/LinearLayout;

    .line 492
    .local v14, "juanbttom":Landroid/widget/LinearLayout;
    const v19, 0x7f0c029c

    invoke-virtual/range {v18 .. v19}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v17

    check-cast v17, Landroid/widget/TextView;

    .line 493
    .local v17, "status":Landroid/widget/TextView;
    invoke-virtual {v12, v7}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v19

    const-string v20, "status"

    invoke-virtual/range {v19 .. v20}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v19

    invoke-static/range {v19 .. v19}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/Integer;->intValue()I

    move-result v2

    .line 495
    .local v2, "checkshu":I
    invoke-virtual {v12, v7}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v19

    const-string v20, "id"

    invoke-virtual/range {v19 .. v20}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 497
    .local v8, "id":Ljava/lang/String;
    if-nez v2, :cond_2

    .line 498
    const-string v19, "\u672a\u4f7f\u7528"

    move-object/from16 v0, v17

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 518
    :goto_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/JuanActivity;->publayout:Landroid/widget/LinearLayout;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    move-object/from16 v1, v18

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 469
    add-int/lit8 v7, v7, 0x1

    goto/16 :goto_1

    .line 499
    :cond_2
    const/16 v19, 0x1

    move/from16 v0, v19

    if-ne v2, v0, :cond_3

    .line 500
    const-string v19, "\u672a\u4f7f\u7528"

    move-object/from16 v0, v17

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    .line 521
    .end local v2    # "checkshu":I
    .end local v3    # "cost":Landroid/widget/TextView;
    .end local v4    # "costString":Ljava/lang/String;
    .end local v6    # "endtime":Landroid/widget/TextView;
    .end local v7    # "i":I
    .end local v8    # "id":Ljava/lang/String;
    .end local v9    # "im_juan":Landroid/widget/ImageView;
    .end local v10    # "im_juan_icon":Landroid/widget/ImageView;
    .end local v12    # "jarray":Lorg/json/JSONArray;
    .end local v13    # "json":Lorg/json/JSONObject;
    .end local v14    # "juanbttom":Landroid/widget/LinearLayout;
    .end local v15    # "juantitle":Landroid/widget/TextView;
    .end local v16    # "limitcost":Landroid/widget/TextView;
    .end local v17    # "status":Landroid/widget/TextView;
    .end local v18    # "tempview":Landroid/view/View;
    :catch_0
    move-exception v5

    .line 523
    .local v5, "e":Lorg/json/JSONException;
    invoke-virtual {v5}, Lorg/json/JSONException;->printStackTrace()V

    .line 524
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/JuanActivity;->mcontext:Landroid/content/Context;

    move-object/from16 v19, v0

    const v20, 0x7f03007d

    const/16 v21, 0x0

    invoke-static/range {v19 .. v21}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v18

    .line 525
    .restart local v18    # "tempview":Landroid/view/View;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/JuanActivity;->publayout:Landroid/widget/LinearLayout;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    move-object/from16 v1, v18

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto/16 :goto_0

    .line 505
    .end local v5    # "e":Lorg/json/JSONException;
    .restart local v2    # "checkshu":I
    .restart local v3    # "cost":Landroid/widget/TextView;
    .restart local v4    # "costString":Ljava/lang/String;
    .restart local v6    # "endtime":Landroid/widget/TextView;
    .restart local v7    # "i":I
    .restart local v8    # "id":Ljava/lang/String;
    .restart local v9    # "im_juan":Landroid/widget/ImageView;
    .restart local v10    # "im_juan_icon":Landroid/widget/ImageView;
    .restart local v12    # "jarray":Lorg/json/JSONArray;
    .restart local v13    # "json":Lorg/json/JSONObject;
    .restart local v14    # "juanbttom":Landroid/widget/LinearLayout;
    .restart local v15    # "juantitle":Landroid/widget/TextView;
    .restart local v16    # "limitcost":Landroid/widget/TextView;
    .restart local v17    # "status":Landroid/widget/TextView;
    :cond_3
    const/16 v19, 0x2

    move/from16 v0, v19

    if-ne v2, v0, :cond_4

    .line 506
    :try_start_1
    const-string v19, "\u5df2\u4f7f\u7528"

    move-object/from16 v0, v17

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 507
    const v19, 0x7f020084

    move/from16 v0, v19

    invoke-virtual {v10, v0}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 508
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/JuanActivity;->mcontext:Landroid/content/Context;

    move-object/from16 v19, v0

    invoke-virtual/range {v19 .. v19}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v19

    const v20, 0x7f020083

    invoke-virtual/range {v19 .. v20}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v19

    move-object/from16 v0, v19

    invoke-virtual {v14, v0}, Landroid/widget/LinearLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_2

    .line 511
    :cond_4
    const v19, 0x7f020085

    move/from16 v0, v19

    invoke-virtual {v10, v0}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 512
    const-string v19, "\u5931\u6548"

    move-object/from16 v0, v17

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 513
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6wmr/JuanActivity;->mcontext:Landroid/content/Context;

    move-object/from16 v19, v0

    invoke-virtual/range {v19 .. v19}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v19

    const v20, 0x7f020083

    invoke-virtual/range {v19 .. v20}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v19

    move-object/from16 v0, v19

    invoke-virtual {v14, v0}, Landroid/widget/LinearLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_2
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1
    .param p1, "requestCode"    # I
    .param p2, "resultCode"    # I
    .param p3, "data"    # Landroid/content/Intent;

    .prologue
    .line 443
    invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V

    .line 445
    const/16 v0, 0x64

    if-ne p1, v0, :cond_0

    .line 446
    const/4 v0, 0x1

    if-ne p2, v0, :cond_0

    .line 448
    iget-object v0, p0, Lcom/example/m6wmr/JuanActivity;->publayout:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 450
    iget-object v0, p0, Lcom/example/m6wmr/JuanActivity;->savedInstanceState:Landroid/os/Bundle;

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/JuanActivity;->onCreate(Landroid/os/Bundle;)V

    .line 456
    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 98
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 99
    const v2, 0x7f030021

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/JuanActivity;->setContentView(I)V

    .line 101
    invoke-virtual {p0}, Lcom/example/m6wmr/JuanActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    check-cast v2, Lmyapp/MyApp;

    iput-object v2, p0, Lcom/example/m6wmr/JuanActivity;->m:Lmyapp/MyApp;

    .line 102
    iget-object v2, p0, Lcom/example/m6wmr/JuanActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v2}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 103
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 105
    const/high16 v2, 0x7f0c0000

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/JuanActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    .line 106
    .local v1, "top":Landroid/widget/LinearLayout;
    iget-object v2, p0, Lcom/example/m6wmr/JuanActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v2}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v2

    const-string v3, "1"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 107
    const v2, 0x7f070026

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 110
    :cond_0
    iput-object p1, p0, Lcom/example/m6wmr/JuanActivity;->savedInstanceState:Landroid/os/Bundle;

    .line 112
    invoke-virtual {p0}, Lcom/example/m6wmr/JuanActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    iput-object v2, p0, Lcom/example/m6wmr/JuanActivity;->intent:Landroid/content/Intent;

    .line 114
    iput-object p0, p0, Lcom/example/m6wmr/JuanActivity;->mcontext:Landroid/content/Context;

    .line 115
    sput-object p0, Lcom/example/m6wmr/JuanActivity;->JuanAc:Lcom/example/m6wmr/JuanActivity;

    .line 116
    new-instance v2, Ldbclass/DBOpenHelper;

    iget-object v3, p0, Lcom/example/m6wmr/JuanActivity;->mcontext:Landroid/content/Context;

    invoke-direct {v2, v3}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/example/m6wmr/JuanActivity;->helper:Ldbclass/DBOpenHelper;

    .line 117
    iget-object v2, p0, Lcom/example/m6wmr/JuanActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v2}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v2

    iput-object v2, p0, Lcom/example/m6wmr/JuanActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 119
    iget-object v2, p0, Lcom/example/m6wmr/JuanActivity;->intent:Landroid/content/Intent;

    if-nez v2, :cond_2

    .line 121
    invoke-virtual {p0}, Lcom/example/m6wmr/JuanActivity;->getShopSource()Z

    .line 144
    :cond_1
    :goto_0
    new-instance v2, Lcom/example/m6wmr/JuanActivity$1;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/JuanActivity$1;-><init>(Lcom/example/m6wmr/JuanActivity;)V

    iput-object v2, p0, Lcom/example/m6wmr/JuanActivity;->h:Landroid/os/Handler;

    .line 257
    invoke-virtual {p0}, Lcom/example/m6wmr/JuanActivity;->bindbtn()V

    .line 259
    const v2, 0x7f0c00ca

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/JuanActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    iput-object v2, p0, Lcom/example/m6wmr/JuanActivity;->publayout:Landroid/widget/LinearLayout;

    .line 263
    const v2, 0x7f0c00c9

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/JuanActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    iput-object v2, p0, Lcom/example/m6wmr/JuanActivity;->btnmydo:Landroid/widget/ImageView;

    .line 264
    iget-object v2, p0, Lcom/example/m6wmr/JuanActivity;->btnmydo:Landroid/widget/ImageView;

    new-instance v3, Lcom/example/m6wmr/JuanActivity$2;

    invoke-direct {v3, p0}, Lcom/example/m6wmr/JuanActivity$2;-><init>(Lcom/example/m6wmr/JuanActivity;)V

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 299
    return-void

    .line 123
    :cond_2
    iget-object v2, p0, Lcom/example/m6wmr/JuanActivity;->intent:Landroid/content/Intent;

    const-string v3, "intenttype"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_3

    .line 125
    iget-object v2, p0, Lcom/example/m6wmr/JuanActivity;->intent:Landroid/content/Intent;

    const-string v3, "intenttype"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string v3, "1"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 127
    invoke-virtual {p0}, Lcom/example/m6wmr/JuanActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "intenttype"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcom/example/m6wmr/JuanActivity;->intenttype:Ljava/lang/String;

    .line 128
    invoke-virtual {p0}, Lcom/example/m6wmr/JuanActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "shopid"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcom/example/m6wmr/JuanActivity;->shopid:Ljava/lang/String;

    .line 132
    const-string v2, "\u52a0\u8f7d\u53ef\u7528\u7684\u4f18\u60e0\u5238"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p0, Lcom/example/m6wmr/JuanActivity;->shopid:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "||"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lcom/example/m6wmr/JuanActivity;->intenttype:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 133
    invoke-virtual {p0}, Lcom/example/m6wmr/JuanActivity;->getcxSource()V

    goto :goto_0

    .line 139
    :cond_3
    invoke-virtual {p0}, Lcom/example/m6wmr/JuanActivity;->getShopSource()Z

    goto/16 :goto_0
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 674
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 677
    iget-object v0, p0, Lcom/example/m6wmr/JuanActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    if-eqz v0, :cond_0

    .line 678
    iget-object v0, p0, Lcom/example/m6wmr/JuanActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V

    .line 680
    :cond_0
    iget-object v0, p0, Lcom/example/m6wmr/JuanActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_1

    .line 681
    iget-object v0, p0, Lcom/example/m6wmr/JuanActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 683
    :cond_1
    iget-object v0, p0, Lcom/example/m6wmr/JuanActivity;->cursor:Landroid/database/Cursor;

    if-eqz v0, :cond_2

    .line 684
    iget-object v0, p0, Lcom/example/m6wmr/JuanActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 687
    :cond_2
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x0

    .line 691
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 692
    invoke-virtual {p0}, Lcom/example/m6wmr/JuanActivity;->finish()V

    .line 695
    :cond_0
    return v1
.end method

.method protected onRestart()V
    .locals 0

    .prologue
    .line 436
    invoke-super {p0}, Landroid/app/Activity;->onRestart()V

    .line 437
    invoke-virtual {p0}, Lcom/example/m6wmr/JuanActivity;->getShopSource()Z

    .line 438
    return-void
.end method

.method public onStart()V
    .locals 0

    .prologue
    .line 428
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 429
    invoke-virtual {p0}, Lcom/example/m6wmr/JuanActivity;->getShopSource()Z

    .line 431
    return-void
.end method

.method public savejuan()Z
    .locals 1

    .prologue
    .line 615
    new-instance v0, Lcom/example/m6wmr/JuanActivity$7;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/JuanActivity$7;-><init>(Lcom/example/m6wmr/JuanActivity;)V

    .line 666
    invoke-virtual {v0}, Lcom/example/m6wmr/JuanActivity$7;->start()V

    .line 667
    const/4 v0, 0x0

    return v0
.end method

.method public waitlogin()V
    .locals 4

    .prologue
    .line 305
    iget-object v1, p0, Lcom/example/m6wmr/JuanActivity;->btnmydo:Landroid/widget/ImageView;

    const/4 v2, 0x4

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 306
    iget-object v1, p0, Lcom/example/m6wmr/JuanActivity;->publayout:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 307
    iget-object v1, p0, Lcom/example/m6wmr/JuanActivity;->mcontext:Landroid/content/Context;

    const v2, 0x7f03009e

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/JuanActivity;->waitLoginView:Landroid/view/View;

    .line 308
    iget-object v1, p0, Lcom/example/m6wmr/JuanActivity;->waitLoginView:Landroid/view/View;

    const v2, 0x7f0c0301

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 309
    .local v0, "waitlogin":Landroid/widget/TextView;
    new-instance v1, Lcom/example/m6wmr/JuanActivity$3;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/JuanActivity$3;-><init>(Lcom/example/m6wmr/JuanActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 322
    iget-object v1, p0, Lcom/example/m6wmr/JuanActivity;->publayout:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/example/m6wmr/JuanActivity;->waitLoginView:Landroid/view/View;

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 324
    return-void
.end method
